<?php #//AJAX PHP PENNY AUCTION v.1.3

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
                        include "../includes/config.inc.php";
             
             
             
                               
          if($_POST[update])  {

       
       $email_confirmation_activated1 = $_POST[activated];
                    $free_bids_at_sign_up1 = $_POST[free_bids_at_sign_up];           
                     $phone_type1 = $_POST[phone_type];
                       $state_label1 = $_POST[state_label];
                           $postcode_label1 = $_POST[postcode_label];
                           $dup_accounts1 = $_POST[dup_accounts];
                     
$query2="UPDATE PHPAUCTIONXL_version_1_3 SET email_confirmation_activated='$email_confirmation_activated1' WHERE id='1'";
       
mysql_query($query2);

$query2="UPDATE PHPAUCTIONXL_version_1_3 SET free_bids_at_sign_up='$free_bids_at_sign_up1' WHERE id='1'";
       
mysql_query($query2);

$query2="UPDATE PHPAUCTIONXL_version_1_3 SET phone_type='$phone_type1' WHERE id='1'";
       
mysql_query($query2);
       
       
       $query2="UPDATE PHPAUCTIONXL_version_1_3 SET state_label='$state_label1' WHERE id='1'";
       
mysql_query($query2); 


          $query2="UPDATE PHPAUCTIONXL_version_1_3 SET postcode_label='$postcode_label1' WHERE id='1'";
 
mysql_query($query2); 


          $query2="UPDATE PHPAUCTIONXL_version_2_0 SET dup_accounts='$dup_accounts1' WHERE id='1'";
 
mysql_query($query2); 

         }     
       
         $query_settings = "select * from PHPAUCTIONXL_version_1_3 where id='1'";
                             $query_settings2 =  mysql_query ($query_settings);
                                $activated = mysql_result($query_settings2,0,"email_confirmation_activated");
                               $free_bids_at_sign_up3 = mysql_result($query_settings2,0,"free_bids_at_sign_up");
                               $phone_type3 = mysql_result($query_settings2,0,"phone_type");                    
                               $state_label3 = mysql_result($query_settings2,0,"state_label");   
                                $postcode_label3 = mysql_result($query_settings2,0,"postcode_label");  


                                         $query_settings = "select * from PHPAUCTIONXL_version_2_0 where id='1'";
                             $query_settings2 =  mysql_query ($query_settings);
                                $dup_accounts1 = mysql_result($query_settings2,0,"dup_accounts");

                                
                                
  ?>
  






<HTML>
<HEAD>
<link rel='stylesheet' type='text/css' href='style.css' />
<link href="css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">





<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
    
       <? // -------------------------- Admin Tool Heading --------------------------------------?>
       
       
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titulo">
        <tr> 
          
        <td class="icono"><img src="images/pref_icon2.gif" width="28" height="28"></td>
          <td class="breadcrumbs"><p><span><?=$MSG_25_0008?></span>&nbsp;&gt;&gt;&nbsp;<? print $MSG_AJAX_ADMIN_REGISTRATION_TITLE; ?></p></td>
        </tr>
      </table>
      
      
      
      </td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
    <tr> 
    <td align="center" valign="middle">
    
    
    
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD align="center">
<BR>
<FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>


  <? // -------------------------- LIGHT BLUE TITLE BAR --------------------------------------?>

	<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0"  class="base" ALIGN="CENTER" style="border:1px solid #ccc;">
		<TR>
			<TD ALIGN=CENTER class=title>
				<p><? print $MSG_AJAX_ADMIN_REGISTRATION_TITLE; ?></p>
			</TD>
		</TR>
		
		
		
		<TR>
		<TD>
		
    
    
    <TABLE WIDTH=100% ALIGN="CENTER" CELLPADDING=0 cellspacing="0" BGCOLOR="#FFFFFF">
		
 <? // -------------------------- ERROR BAR --------------------------------------?>    
 
 <? if ($ERR) { ?>   
    	<TR>
				<TD COLSPAN="2"  class="error"><B>
					<p><? print $ERR; ?></p>
					</B></TD>
			</TR>
	<? } ?>	
    
    	
			
			
 <? // -------------------------- WHITE BAR --------------------------------------?> 			
				<TR>
        <TD WIDTH="125"> 
					<p class="blue"><? print $MSG_AJAX_ADMIN_REGISTRATION_ACTIVATE_VERIFICATION; ?></p>
					          </TD>
					
					
				<TD WIDTH="405">
				
					
					
					 
<input type="radio" name="activated" value="1" <? if ( $activated == 1 ) echo checked ?> /> <? print $MSG_AJAX_ADMIN_REGISTRATION_ON; ?> &nbsp;&nbsp; <input type="radio" name="activated" value="0" <? if ( $activated == 0 ) echo checked ?> /> <? print $MSG_AJAX_ADMIN_REGISTRATION_OFF; ?>  &nbsp;&nbsp;&nbsp;&nbsp;
<? print $MSG_AJAX_ADMIN_REGISTRATION_ACTIVATE_VERIFICATION_NOTE; ?>
				</TD>
			</TR>
			
		 <? // -------------------------- GREY BAR --------------------------------------?>	
			
			<TR>
				<TD WIDTH="125" class="gris">
					<p class="blue"><? print $MSG_AJAX_ADMIN_REGISTRATION_FREE_BIDS; ?></p>
					</TD>
				<TD WIDTH="405" class="gris">
					<INPUT TYPE="text" NAME="free_bids_at_sign_up" SIZE="3" MAXLENGTH="3" VALUE="<? print $free_bids_at_sign_up3; ?>"> &nbsp;&nbsp;&nbsp;&nbsp; <? print $MSG_AJAX_ADMIN_REGISTRATION_FREE_BIDS_NOTE; ?>
				</TD>
			</TR>
			
			
				
 <? // -------------------------- WHITE BAR --------------------------------------?> 			
				<TR>
        <TD WIDTH="125"> 
					<p class="blue"><? print $MSG_AJAX_ADMIN_REGISTRATION_PHONE_NUMBER_FORMAT; ?></p>
					</TD>
	
					
				<TD WIDTH="405">
				
					
					      
<input type="radio" name="phone_type" value="usa" <? if ( $phone_type3 == 'usa' ) echo checked ?> /> <? print $MSG_AJAX_ADMIN_REGISTRATION_USA_FORMAT; ?> &nbsp;&nbsp; <input type="radio" name="phone_type" value="" <? if ( $phone_type3 != 'usa' ) echo checked ?> /> <? print $MSG_AJAX_ADMIN_REGISTRATION_WORLDWIDE_FORMAT; ?> &nbsp;&nbsp;&nbsp;&nbsp;

			</TD>
			</TR>
			
			
					 <? // -------------------------- GREY BAR --------------------------------------?>	
			
			<TR>
				<TD WIDTH="125" class="gris">
					<p class="blue"><? print $MSG_AJAX_ADMIN_REGISTRATION_DUP_ACCOUNTS; ?></p>
					<font color=red >This needs to be set to at least 1</font>
					</TD>
				<TD WIDTH="405" class="gris">
					<INPUT TYPE="text" NAME="dup_accounts" SIZE="3" MAXLENGTH="3" VALUE="<? print $dup_accounts1; ?>"> &nbsp;&nbsp;&nbsp;&nbsp; <? print $MSG_AJAX_ADMIN_REGISTRATION_DUP_ACCOUNTS_NOTE; ?>
				</TD>
			</TR>
			
			
		 <? // -------------------------- GREY BAR --------------------------------------?>	
			

					<INPUT TYPE="hidden" NAME="state_label" SIZE="32" MAXLENGTH="32" VALUE="<? print $state_label3; ?>"> 
	
			       	<INPUT TYPE="hidden" NAME="postcode_label" SIZE="32" MAXLENGTH="32" VALUE="<? print $postcode_label3; ?>"> 
			</TABLE>
		
		  <INPUT TYPE=hidden NAME=update VALUE=1 >
		        <INPUT TYPE="submit" NAME="act" VALUE="<? print $MSG_AJAX_ADMIN_UPDATE_SETTINGS; ?>" class="action">
		 </form>
		
	                 
		</TD>
		</TR>
	</TABLE>
	
</TD>
</TR>
</TABLE>
      
 </td>
</TR>
</TABLE>

</BODY>
</HTML>
